<?php

namespace App\Http\Controllers;

use App\Mail\RegMail;
use App\Models\Blogs;
use App\Models\User;
use Illuminate\Http\Request;

class IndexController extends Controller
{
    //主页
    public function index()
    {
        $blogs = Blogs::orderBy('id', 'desc')->simplePaginate(4);
        return view('home',compact('blogs'));
    }
}
